package com.jiang.sign.Utils;

import org.slf4j.Logger;

public class LogUtil {

	public static void logInfo(Logger logger,String reqStr,String respStr,String method,String sessionId,long startTime) {
		logger.info("--------{}--------\nreq({}):\t{}\nrsp({}):\t{}\nuse time:{}", new Object[] { method, sessionId, reqStr.trim(),
				sessionId, respStr.trim(), (System.currentTimeMillis() - startTime) + "" });
	}
	public static void logInfo(Logger logger,String reqStr,String respStr,String method,String sessionId,long startTime,String url) {
		logger.info("--------{}--------\nreq({}):\t{}\nrsp({}):\t{}\nurl:{}\t\nuse time:{}", new Object[] { method, sessionId, reqStr, sessionId, respStr, url, (System.currentTimeMillis() - startTime) + "" });
	}
}
